-- GENERATED SPELL FOR [Stonevault Geomancer] --


function spell0_4853(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4853', 3000, 1)
end

function spell1_4853(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(10452,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4853', 22200, 1)
end

function Sorts_4853(pUnit, Event)
local choix_sorts_4853 = math.random(0, 1)
if choix_sorts_4853 == 0 then
pUnit:RegisterEvent('spell0_4853', 1, 1)
end
if choix_sorts_4853 == 1 then
pUnit:RegisterEvent('spell1_4853', 1, 1)
end
end

function mob4853_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4853', math.random(1500, 3000), 1)
end

function mob4853_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4853_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4853_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4853, 1, 'mob4853_Action')
RegisterUnitEvent(4853, 2, 'mob4853_Leave')
RegisterUnitEvent(4853, 3, 'mob4853_Kill')
RegisterUnitEvent(4853, 4, 'mob4853_Die')
